/**
 * 毕业生管理
 */

import request from "@/utils/request.js";

// 列表
export function thegraduateListApi(params) {
  return request({
    url: "/admin/graduate/list",
    method: "POST",
    params,
  });
}

// 添加
export function addThegraduateApi(params) {
  return request({
    url: "/admin/graduate/add",
    method: "POST",
    params,
  });
}

// 性别
export function getSexApi(params) {
  return request({
    url: "edu/typeData/list",
    method: "POST",
    params,
  });
}

// 修改
export function editThegraduateApi(params) {
  return request({
    url: "/admin/graduate/edit",
    method: "POST",
    params,
  });
}


// 导出
export function exportThegraduateApi(params) {
  return request({
    url: "/admin/graduate/export",
    responseType: 'blob',
    method: "POST",
    params,
  });
}

// 删除
export function removeThegraduateApi(params) {
  return request({
    url: "/admin/graduate/remove",
    method: "POST",
    params,
  });
}


// 批量生成毕业号
export function listAddThegraduateApi(params) {
  return request({
    url: "/admin/graduate/listAdd",
    method: "POST",
    params,
  });
}


// 毕业策略列表
export function getGraduationStrategyApi(params) {
  return request({
    url: "/admin/strategy/list",
    method: "POST",
    params,
  });
}

// 选择毕业策略
export function screenThegraduateApi(params) {
  return request({
    url: `/admin/graduate/screening`,
    method: "POST",
    params,
  });
}

// 学院管理导航树
export function colleageTreeDataApi() {
  return request({
    url: "/edu/colleage/colleageTreeData",
    method: "POST",
  });
}

// 根据条件查询专业列表
export function majorListApi(data) {
  return request({
    url: "/edu/major/list",
    method: "post",
    params: data,
  });
}


// 获取班级列表
export function getClassGradeListApi(params) {
  return request({
    url: '/edu/class/list',
    method: 'POST',
    params
  })
}

// 年级列表
export function getGradeListApi(data) {
  return request({
    url: '/edu/typeData/list',
    method: 'POST',
    params: data
  })
}

// 左侧树
export function leftTreeListApi(data) {
  return request({
    url: '/edu/colleage/collegeInformation',
    method: 'POST',
    params: data
  })
}


// 打印
export function printApi(data) {
  return request({
    url: '/admin/graduate/print',
    method: 'POST',
    params: data
  })
}
